package kz.kstu.shop.facade.ejb.api;

import kz.kstu.shop.business.entity.Synchronizable;

import javax.ejb.Remote;
import java.util.List;

/**
 * @author Filipp_Stankevich
 *         created: 8/9/11 6:00 PM
 */
@Remote
public interface SyncFacade {

    final static String SERVICE_NAME = "SyncFacadeBean";

    <T extends Synchronizable> List<Synchronizable> findForSync(Class<T> classForSync, Long changeDate);

    void saveSycnhronazable(List<Synchronizable> entities);
}
